package com.carlinfo.users.pojo;

import java.util.Date;

/**
 * @author Gonsen 教师的实体类
 */
public class ATeachers {

	/**
	 * 属性对应数据库表中的字段，一一对应
	 */
	private String id;
	private String name;
	private String title;
	private String photoPath;
	private String brief;
	private String content;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	
	/*添加一个枚举类用于状态的描述,状态的字符串描述*/
	private String statusStr;
	
	public String getStatusStr() {
		ATeachersEnum[] teacherEnums = ATeachersEnum.values();
		for (int i = 0; i < teacherEnums.length; i++) {
			ATeachersEnum teacherEnum = teacherEnums[i];
			if(teacherEnum.toString().startsWith("STATUS")){
				if(this.getStatus() == teacherEnum.getStatus()){
					this.statusStr = teacherEnum.getName();
				}
			}
		}
		return statusStr;
	}
	/**
	 * get、set读写器
	 */
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getPhotoPath() {
		return photoPath;
	}
	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}
	public String getBrief() {
		return brief;
	}
	public void setBrief(String brief) {
		this.brief = brief;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	
}
